package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.NursingPlanDTO;
import com.zzyl.dto.NursingProjectDTO;
import com.zzyl.entity.NursingPlan;
import com.zzyl.entity.NursingProjectPlan;
import com.zzyl.vo.NursingPlanVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingPlanMapper {
    //分页查询
    Page<NursingPlan> selectByPage(String name, Integer status);

    //查询所有计划
    List<NursingPlan> selectAll();

    //根据id查询护理计划
    NursingPlanVO selectById(Long id);

    //删除护理计划
    void deleteById(Long id);

    //修改护理计划状态
    void updateStatus(Long id, Integer status);

    //添加护理计划
    void addNursingPlan(NursingPlan plan);

    //更新护理计划
    void Update(NursingPlan plan);
}
